<ion-view view-title="{{language == 0?'四方当代美术馆':'Sifang Art Museum'}}">
  <ion-content class="normal_box bg" delegate-handle="mainScroll" overflow-scroll="false">
    
    <!-- 头部 -->
    <div class="product_header" ng-if="id != 0">
      <div class="product_header_pro" ng-repeat="list in categorys|filter:{status:1} |orderBy:sort" ng-click="turn(list.id)">
        <div class="product_header_promain" ng-class="{'project_chosen':header_chosen == list.id,'f12_i':language == 1}">{{language == 0?list.name:list.name_en}}</div>
      </div>
      <!-- <div class="product_header_pro" ng-click="turn(3)">
        <div class="product_header_promain" ng-class="{'project_chosen':header_chosen == 3}">建筑</div>
      </div>
      <div class="product_header_pro" ng-click="turn(2)">
        <div class="product_header_promain" ng-class="{'project_chosen':header_chosen == 2}">美术</div>
      </div>
      <div class="product_header_pro" ng-click="turn(1)">
        <div class="product_header_promain" ng-class="{'project_chosen':header_chosen == 1}">设计</div>
      </div> -->
      <!-- <div class="product_header_pro" ng-if="id == 0">
        <div class="product_header_promain">{{language == 0?'搜索结果':'Search Results'}}</div>
      </div> -->
    </div>

    <div class="top_header" ng-if="id == 0">
      <span class="header_left" ng-click="backhome()">
        <img src="img/backhome.png" class="backhome" />
      </span>
      <i class="iconfont icon-Path5 top_icon2" ng-click="gotoCenter()"></i>
      <!--<i class="iconfont icon-Path11 top_icon3" ng-click="gotoShop()"></i> -->

      <div class="header_search">
        <div class="header_search_box">
          <input class="header_search_input" style="text-align:center;" placeholder="输入你想搜索的商品" ng-model="$root.search_product" />
        </div>
        <i class="iconfont icon-sousuo header_search_icon" ng-click="gosearch()"></i>
      </div>
    </div>

    <div class="product_content">
      <!-- <div class="product_pro" ng-repeat="list in products" ng-if="products" ng-click="gotoDetail(list)">
        <img class="project_img" ng-src="{{fullPath(list.banner[0])}}" style="height:auto;"/>
        <p class="product_title span_line2">{{language == 0?list.name:list.name_en}}</p>
        <p class="product_line pos_re" ng-if="list.price_low == list.price_high">
          ￥<span class="product_price">{{list.price_low}}</span>
          <span class="ticket_plus" ng-click="gotoDetail(list)">+</span>
        </p>

        <p class="product_line pos_re" ng-if="list.price_low != list.price_high">
          ￥<span class="product_price">{{list.price_low}}</span> — ￥<span class="product_price">{{list.price_high}}</span>
          <span class="ticket_plus" ng-click="gotoDetail(list)">+</span>
        </p>
      </div> -->
      <div class="procuct_new_pro fl" ng-repeat="($index,list) in products" ng-class="{'pl10_pr5':$index%2 == 0,'pl5_pr10':$index%2 == 1}" ng-click="gotoDetail(list)">
        <div class="product_new_content">
          <div class="product_new_content_img" style="background-image:url({{fullPath(list.banner[0])}});background-size:cover;background-position:center;background-repeat:no-repeat;"></div>
          <div class="product_new_content_span span_line2">{{language == 0?list.name:list.name_en}}</div>
          <p class="product_line pd0_8 pos_re" ng-if="list.price_low == list.price_high">
            ￥<span class="product_price">{{list.price_low}}</span>
            <span class="ticket_plus r8" ng-click="gotoDetail(list)">+</span>
          </p>

          <p class="product_line pd0_8 pos_re" ng-if="list.price_low != list.price_high">
            ￥<span class="product_price" ng-class="{'f13_i':list.price_low.length > 4}">{{list.price_low}}</span> — ￥<span class="product_price" ng-class="{'f13_i':list.price_low.length > 4}">{{list.price_high}}</span>
            <span class="ticket_plus r8" ng-click="gotoDetail(list)">+</span>
          </p>
        </div>
      </div>
    </div>

  </ion-content>

  <div class="noinfo_span" ng-if="!products">
    暂无信息
  </div>

  <div class="cart_icon" ng-click="gotoCart()">
    <i class="iconfont icon-cart"></i>
  </div>
</ion-view>